import request from '@/utils/request'

// 获取档案树
export function getTrees(query) {
  return request({
    url: '/archive/trees/gettrees',
    method: 'get',
    params: query
  })
}

// 获取匹配策略下拉
export function getFileNumberField(query) {
  return request({
    url: '/archive/cateMdataList/getFileNumberField',
    method: 'get',
    params: query
  })
}

// 挂接
export function serverArticulated(data) {
  return request({
    url: '/archive/yqdaarticulated/serverArticulated',
    method: 'post',
    data: data
  })
}

// 挂接完成后查询列表
export function getServerLogList(query) {
  return request({
    url: '/archive/yqdaarticulated/getServerLogList',
    method: 'get',
    params: query
  })
}
